home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / tde40.zip / cfgfile.h < prev    next >
C/C++ Source or Header  |  1994-06-05  |  21KB  |  594 lines

  1. #ifndef MY_TYPES
  2. #define MY_TYPES
  3.  
  4. /*
  5.  * mode indexes
  6.  */
  7. #define Ins              0
  8. #define Ind              1
  9. #define PTAB             2
  10. #define LTAB             3
  11. #define Smart            4
  12. #define Write_Z          5
  13. #define Crlf             6
  14. #define Trim             7
  15. #define Eol              8
  16. #define WW               9
  17. #define Left            10
  18. #define Para            11
  19. #define Right           12
  20. #define Size            13
  21. #define Backup          14
  22. #define Ruler           15
  23. #define Date            16
  24. #define Time            17
  25. #define Initcase        18
  26. #define InflateTabs     19
  27. #define Match           20
  28. #define Ignore          21
  29. #define JustRM          22
  30.  
  31. /*
  32.  * structure for list of available keys.   See default.h for more info.
  33.  */
  34. typedef struct {
  35.    char *key;           /* key name */
  36.    int  key_index;      /* offset into key structure in tde.exe file */
  37. } CONFIG_DEFS;
  38.  
  39. #endif
  40.  
  41.  
  42. /*
  43.  * Group the list of available keys alphabetically.
  44.  */
  45. CONFIG_DEFS valid_keys[AVAIL_KEYS] = {
  46. /*  available key      index into file   */
  47.    { "a+\'",                     40 },
  48.    { "a+-",                     130 },
  49.    { "a+0",                     129 },
  50.    { "a+1",                     120 },
  51.    { "a+2",                     121 },
  52.    { "a+3",                     122 },
  53.    { "a+4",                     123 },
  54.    { "a+5",                     124 },
  55.    { "a+6",                     125 },
  56.    { "a+7",                     126 },
  57.    { "a+8",                     127 },
  58.    { "a+9",                     128 },
  59.    { "a+;",                      39 },
  60.    { "a+<",                      51 },
  61.    { "a+=",                     131 },
  62.    { "a+>",                      52 },
  63.    { "a+?",                      53 },
  64.    { "a+[",                      26 },
  65.    { "a+]",                      27 },
  66.    { "a+a",                      30 },
  67.    { "a+b",                      48 },
  68.    { "a+backspace",              14 },
  69.    { "a+c",                      46 },
  70.    { "a+d",                      32 },
  71.    { "a+e",                      18 },
  72.    { "a+enter",                  28 },
  73.    { "a+esc",                     1 },
  74.    { "a+f",                      33 },
  75.    { "a+f1",                    104 },
  76.    { "a+f10",                   113 },
  77.    { "a+f11",                   139 },
  78.    { "a+f12",                   140 },
  79.    { "a+f2",                    105 },
  80.    { "a+f3",                    106 },
  81.    { "a+f4",                    107 },
  82.    { "a+f5",                    108 },
  83.    { "a+f6",                    109 },
  84.    { "a+f7",                    110 },
  85.    { "a+f8",                    111 },
  86.    { "a+f9",                    112 },
  87.    { "a+g",                      34 },
  88.    { "a+grey/",                 164 },
  89.    { "a+greydel",               163 },
  90.    { "a+greydown",              160 },
  91.    { "a+greyend",               159 },
  92.    { "a+greyenter",             166 },
  93.    { "a+greyhome",              151 },
  94.    { "a+greyins",               162 },
  95.    { "a+greyleft",              155 },
  96.    { "a+greypgdn",              161 },
  97.    { "a+greypgup",              153 },
  98.    { "a+greyright",             157 },
  99.    { "a+greyup",                152 },
  100.    { "a+h",                      35 },
  101.    { "a+i",                      23 },
  102.    { "a+j",                      36 },
  103.    { "a+k",                      37 },
  104.    { "a+l",                      38 },
  105.    { "a+m",                      50 },
  106.    { "a+n",                      49 },
  107.    { "a+o",                      24 },
  108.    { "a+p",                      25 },
  109.    { "a+q",                      16 },
  110.    { "a+r",                      19 },
  111.    { "a+s",                      31 },
  112.    { "a+t",                      20 },
  113.    { "a+tab",                   165 },
  114.    { "a+u",                      22 },
  115.    { "a+v",                      47 },
  116.    { "a+w",                      17 },
  117.    { "a+x",                      45 },
  118.    { "a+y",                      21 },
  119.    { "a+z",                      44 },
  120.    { "a+~",                      41 },
  121.    { "backspace",                 9 },
  122.    { "c+@",                     174 },
  123.    { "c+[",                     201 },
  124.    { "c+\\",                    202 },
  125.    { "c+]",                     203 },
  126.    { "c+^",                     204 },
  127.    { "c+_",                     205 },
  128.    { "c+a",                     175 },
  129.    { "c+b",                     176 },
  130.    { "c+backspace",              11 },
  131.    { "c+c",                     177 },
  132.    { "c+center",                143 },
  133.    { "c+d",                     178 },
  134.    { "c+del",                   147 },
  135.    { "c+down",                  145 },
  136.    { "c+e",                     179 },
  137.    { "c+end",                   117 },
  138.    { "c+enter",                   8 },
  139.    { "c+esc",                     4 },
  140.    { "c+f",                     180 },
  141.    { "c+f1",                     94 },
  142.    { "c+f10",                   103 },
  143.    { "c+f11",                   137 },
  144.    { "c+f12",                   138 },
  145.    { "c+f2",                     95 },
  146.    { "c+f3",                     96 },
  147.    { "c+f4",                     97 },
  148.    { "c+f5",                     98 },
  149.    { "c+f6",                     99 },
  150.    { "c+f7",                    100 },
  151.    { "c+f8",                    101 },
  152.    { "c+f9",                    102 },
  153.    { "c+g",                     181 },
  154.    { "c+grey*",                 150 },
  155.    { "c+grey+",                 144 },
  156.    { "c+grey-",                 142 },
  157.    { "c+grey/",                 149 },
  158.    { "c+greyenter",              43 },
  159.    { "c+h",                     182 },
  160.    { "c+home",                  119 },
  161.    { "c+i",                     183 },
  162.    { "c+ins",                   146 },
  163.    { "c+j",                     184 },
  164.    { "c+k",                     185 },
  165.    { "c+l",                     186 },
  166.    { "c+left",                  115 },
  167.    { "c+m",                     187 },
  168.    { "c+n",                     188 },
  169.    { "c+o",                     189 },
  170.    { "c+p",                     190 },
  171.    { "c+pgdn",                  118 },
  172.    { "c+pgup",                  132 },
  173.    { "c+q",                     191 },
  174.    { "c+r",                     192 },
  175.    { "c+right",                 116 },
  176.    { "c+s",                     193 },
  177.    { "c+t",                     194 },
  178.    { "c+tab",                   148 },
  179.    { "c+u",                     195 },
  180.    { "c+up",                    141 },
  181.    { "c+v",                     196 },
  182.    { "c+w",                     197 },
  183.    { "c+x",                     198 },
  184.    { "c+y",                     199 },
  185.    { "c+z",                     200 },
  186.    { "center",                   76 },
  187.    { "del",                      83 },
  188.    { "down",                     80 },
  189.    { "end",                      79 },
  190.    { "enter",                     6 },
  191.    { "esc",                       2 },
  192.    { "f1",                       59 },
  193.    { "f10",                      68 },
  194.    { "f11",                     133 },
  195.    { "f12",                     134 },
  196.    { "f2",                       60 },
  197.    { "f3",                       61 },
  198.    { "f4",                       62 },
  199.    { "f5",                       63 },
  200.    { "f6",                       64 },
  201.    { "f7",                       65 },
  202.    { "f8",                       66 },
  203.    { "f9",                       67 },
  204.    { "grey+",                   168 },
  205.    { "grey-",                   167 },
  206.    { "greyenter",                29 },
  207.    { "home",                     71 },
  208.    { "ins",                      82 },
  209.    { "left",                     75 },
  210.    { "pgdn",                     81 },
  211.    { "pgup",                     73 },
  212.    { "right",                    77 },
  213.    { "s+a+\'",                  242 },
  214.    { "s+a+-",                   216 },
  215.    { "s+a+0",                   215 },
  216.    { "s+a+1",                   206 },
  217.    { "s+a+2",                   207 },
  218.    { "s+a+3",                   208 },
  219.    { "s+a+4",                   209 },
  220.    { "s+a+5",                   210 },
  221.    { "s+a+6",                   211 },
  222.    { "s+a+7",                   212 },
  223.    { "s+a+8",                   213 },
  224.    { "s+a+9"